#ifndef _PLAYERMANAGER_
#define	_PLAYERMANAGER_

#include "Objects/Objects.hpp"
#include "Player.hpp"

/**
 * Player entity manager.
 */
class PlayerManager:public ObjectManager{
public:
    /** 
     * Pointer array to active players. 
     * The objects are stored in the client collection.
     */
    Player** players;

    PlayerManager();
    
    void init(byte s);
    
    virtual void update(unsigned int frameTime);

    void createPlayer(Player* player);
    void destroyPlayer(Player* player);

    virtual void bind(lua_State* luaState);
    virtual void push(lua_State* luaState);
};


#endif